package core {
public class GameGroup extends AGameObject {
    private var _group:Array;

    public function GameGroup(array:Array=null) {
        if (array==null){
            _group = new Array();
        }else{
            _group = array;
        }


    }

    public function addObject(obj:AGameObject):void
    {
        _group.push(obj);
        addChild(obj);
    }

    override public function update():void
    {
        var object:AGameObject;
        for each(object in _group)
        {
            object.update();
        }
    }
}
}
